package course04

object CaseClassApp {

  def main(args: Array[String]): Unit = {
    println(Dog("wangcai").name)
  }
}

//case class 不用 new,通常用在模式匹配里面
case class Dog(name:String)